package com.jswdwsx.common.utils;

import java.time.Instant;
import java.time.ZoneId;
import java.time.ZonedDateTime;

public class DateUtils {

    private DateUtils() {
    }

    private static ZoneId defaultZoneId = ZoneId.of("Asia/Shanghai");

    public static String toDateString(Long l) {
        return ZonedDateTime.ofInstant(Instant.ofEpochMilli(l), defaultZoneId).toString();
    }
}
